<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>插值</title>

</head>
<body>
    <div id="app">
        {{message}}  <!--胡须表达式，mustache-->
         <div v-text="user.username"></div>
          <div v-html="user.userNO"></div>

        <input type="text" v-model="user.username">
    </div>
</body>
<script src="../../../lib/vue.global.js"></script>
<script>


    const app = {
        data() { // data:function() --- model

            return { //工程方法

                message: 'hello world',
                user: {
                    username: '<h1>admin</h1>',
                    userNO: '<h2>test001</h2>'
                }
            }
        }
    }


    Vue.createApp(app).mount('#app');

</script>
</html>